package customer

import "time"

type CustomerGroupTenantRelationPo struct {
	ID              int64     `gorm:"primaryKey" json:"id"`
	CustomerGroupID int64     `gorm:"not null;default:0" json:"customer_group_id"`
	TenantCode      string    `gorm:"type:varchar(100);not null;default:''" json:"tenant_code"`
	IsDeleted       int32     `gorm:"type:tinyint(1);not null;default:0" json:"is_deleted"`
	CreatedOn       time.Time `gorm:"type:datetime;not null;default:CURRENT_TIMESTAMP" json:"created_on"`
	CreatedBy       string    `gorm:"type:varchar(36);not null;default:''" json:"created_by"`
	ModifiedOn      time.Time `gorm:"type:datetime;not null;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP" json:"modified_on"`
	ModifiedBy      string    `gorm:"type:varchar(36);not null;default:''" json:"modified_by"`
}

func (t CustomerGroupTenantRelationPo) TableName() string {
	return "customer_group_tenant_relation"
}
